<?php
/************************FoxPHP威客系统************************/
/*                                                            */
/*  FoxPHP.Com (C)2006-2016 FoxPHP Inc.                       */
/*  This is NOT a freeware, use is subject to license terms   */
/*  FoxPHP威客系统是商业软件,使用于商业用途请购买授权         */
/*  V3.0 2016.3                                               */
/*  foxphp@aliyun.com                                         */
/*  http://www.foxphp.com                                     */
/*                                                            */
/**************************************************************/

//任务
namespace Rencai\Controller;
use Think\Controller;
class MapController extends Controller {
	
	public function indexAction(){
		
		$model=new \Member\Model\MemberModel();
		$result=$model->GetShopList('map');
		
		$this->assign('list',$result['list']);	
		$this->assign('page',$result['page']);
		$this->assign('categoryarr',$result['category']);
		$this->assign('categorycityarr',$result['categorycity']);
		$this->assign('route',$result['route']);
		$this->assign('cityname',$result['cityname']);
		$this->assign('search',$result['search']);
		
		//最新8条
		$newuser=$model->GetCustomData(' isshop=1 ','dateline DESC',8);
		$this->assign('newuser',$newuser);
		
		//推荐
		$hotuser=$model->GetCustomData(' isshop=1 ','top DESC',8);
		$this->assign('hotuser',$hotuser);
		
		$order=intval($_GET['order']);
		$this->assign('order',$order);
		
		
		$model=new \Data\Model\DataModel();
		$this->assign('model',$model);
		
		$this->assign('PATH',array('服务商地图',$result['categoryone']['name']));
		$this->assign('SEO',array('title'=>'服务商地图'.$result['categoryone']['name'],'keywords'=>$result['categoryone']['keywords'],'description'=>$result['categoryone']['description']));
		
		$this->display();
	}

	
}